package com.ruoyi.supermarket.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;

/**
 * 会员管理对象 member
 *
 * @author xfq
 * @date 2024-07-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Member implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 会员id */
    private Long memberId;

    /** 客户外键id */
    @Excel(name = "客户外键id")
    private Long customerId;

    /** 会员名称 */
    @Excel(name = "会员名称")
    private String memberName;

    /** 会员电话 */
    @Excel(name = "会员电话")
    private String memberPhone;

    /** 会员余额 */
    @Excel(name = "会员余额")
    private Long memberMoney;

    /** 会员积分 */
    @Excel(name = "会员积分")
    private Long memberPoint;

    /** 会员等级 */
    @Excel(name = "会员等级")
    private Long memberLevel;

    /** 删除标记 */
    private Long deleted;

    public void setMemberId(Long memberId)
    {
        this.memberId = memberId;
    }

    public Long getMemberId()
    {
        return memberId;
    }
    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public Long getCustomerId()
    {
        return customerId;
    }
    public void setMemberName(String memberName)
    {
        this.memberName = memberName;
    }

    public String getMemberName()
    {
        return memberName;
    }
    public void setMemberPhone(String memberPhone)
    {
        this.memberPhone = memberPhone;
    }

    public String getMemberPhone()
    {
        return memberPhone;
    }
    public void setMemberMoney(Long memberMoney)
    {
        this.memberMoney = memberMoney;
    }

    public Long getMemberMoney()
    {
        return memberMoney;
    }
    public void setMemberPoint(Long memberPoint)
    {
        this.memberPoint = memberPoint;
    }

    public Long getMemberPoint()
    {
        return memberPoint;
    }
    public void setMemberLevel(Long memberLevel)
    {
        this.memberLevel = memberLevel;
    }

    public Long getMemberLevel()
    {
        return memberLevel;
    }
    public void setDeleted(Long deleted)
    {
        this.deleted = deleted;
    }

    public Long getDeleted()
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("memberId", getMemberId())
            .append("customerId", getCustomerId())
            .append("memberName", getMemberName())
            .append("memberPhone", getMemberPhone())
            .append("memberMoney", getMemberMoney())
            .append("memberPoint", getMemberPoint())
            .append("memberLevel", getMemberLevel())
            .append("deleted", getDeleted())
            .toString();
    }
}
